<?php

class test extends Controller {
	function index() {
		$path = 'org/shirts/view/blogs';
		preg_match_all('"org/([a-z]+)"', $path, $matches);
		var_dump( $matches );
		$replace = range( 0,count($matches) )
		foreach( $replace as $k=>$v );
		
		// $string = 'The quick brown fox jumped over the lazy dog.';
		// $patterns[0] = '/quick/';
		// $patterns[1] = '/\/brown\//';
		// $patterns[2] = '/fox/';
		// $replacements[2] = 'bear';
		// $replacements[1] = '/black/';
		// $replacements[0] = 'slow';
		// var_dump(preg_replace($patterns, $replacements, $path));
	}
}